@echo off
echo ==========================================
echo     Starting Backend Server Manually
echo ==========================================
echo.

:: Check if Maven wrapper exists
if exist "mvnw.cmd" (
    echo Using Maven wrapper...
    call mvnw.cmd spring-boot:run
) else (
    echo Maven not found. Please do one of the following:
    echo.
    echo 1. Install Maven and add it to your PATH
    echo 2. Use an IDE to run WebApplication.java
    echo 3. Download project dependencies manually
    echo.
    echo WebApplication.java location:
    echo %~dp0src\main\java\com\example\web\WebApplication.java
    echo.
)

pause